package hn.cch.service.impl;

import hn.cch.dao.CityDao;
import hn.cch.model.City;
import hn.cch.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by chench on 2020-5-21.
 */

@Component(value = "cityService")
public class CityServiceImpl implements CityService {

    @Autowired
    private CityDao cityDao;

    public List<City> getAll(){
        return cityDao.getAll();
    }
}
